﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.OracleClient;

namespace BLL.ElecBoss
{
    public class Fault
    {
        OracleDAL.ElecBoss.Fault f = new OracleDAL.ElecBoss.Fault();
        public int addFault(string sqlStr)
        {
            return f.addFault(sqlStr);
        }
        public DataSet getFault(string whereSql)
        {
            DataSet ds = new DataSet();
            ds = f.getFault(whereSql);
            return ds;
        }
        public DataSet getFaultToDuty(string where)
        {

            DataSet ds = new DataSet();
            ds = f.getFaultToDuty(where);
            return ds;

        }
        public DataSet getTempDs()
        {
            DataSet ds = new DataSet();
            ds = f.getTempDs();
            return ds;
        }
        public DataSet getAlarm(string where)
        {
            DataSet ds = new DataSet();
            ds = f.getAlarm(where);
            return ds;
        }
        public int updateAlarm(string id)
        {
            int result = 0;
            result =f.updateAlarm(id);
            return result;
        }
        public int updateFault(string id)
        {
            int result = 0;
            result = f.updateFault(id);
            return result;
        }
        public int updateAlarmType(string id)
        {
            return f.updateAlarmType(id);
        }
        public int updateFaultType(string id)
        {
            return f.updateFaultType(id);
        }
        public int deleteFault(string id)
        {
            return f.deleteFault(id);
        }
        public DataSet  getEtype(string etype)
        {
            return f.getEtype(etype);
        }
   
    }

}
